// 秒杀接口

import axios from "../utils/request"

export const getSeckillApi = () => axios({
  url: "/api/secklist",
})

export const addSeckillApi = skForm => axios({
  url: "/api/seckadd",
  method: "post",
  data: skForm
})

export const editSeckillApi = skForm => axios({
  url: "/api/seckedit",
  method: "post",
  data: skForm
})

export const delSeckillApi = id => axios({
  url: "/api/seckdelete",
  method: 'POST',
  data: { id }
})